const Person = {
    name:'Person',
    template:`
        <div class="person">
            <h2>人员信息</h2>
            <h4>姓名：{{pname}}</h4>
            <h4>年龄：{{age}}</h4>
            <button @click="showPersonInfo">点我提示人员的信息</button>
        </div>
    `,
    data(){
        return {
            pname:'圆圆的海峰',
            age:18,
           
        }
    },
    methods:{
        showPersonInfo(){
            alert(this.pname + '-' + this.age)
        }
    },
}

